<?php

namespace App\Http\Controllers\Home;

use App\Models\Shop\Customer;
use Illuminate\Http\Request;

use App\Http\Requests;
use App\Http\Controllers\Controller;

class CustomerController extends Controller
{
    function index()
    {
        //return 123;
        $customer = Customer::find(session('wechat.oauth_user'));
        //return $customer;
        return view('home.user')->with('customer',$customer);
    }
}
